//
//  YTTDataManager.h
//  跑圈儿
//
//  Created by dllo on 16/4/25.
//  Copyright © 2016年 唐康. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDB.h"

@interface YTTDataManager : NSObject

+(YTTDataManager *)shareInstance;

@property(nonatomic, strong)FMDatabase *db;
@property(nonatomic, strong)NSString  *filePath;
@property (nonatomic,copy) NSString   *timeStamp;
@property (nonatomic,strong) NSDate   *datenow;
-(void)openDB;

-(void)closeDB;

/***  创建表*/
-(void)creatTable;

/***  删除表*/
-(void)dropTalbe;

/***  删*/
-(void)delegateData;

-(BOOL)insertMiter:(CGFloat)miter Time:(NSString *)time Calendar:(NSString *)calendar TimeStamp:(NSString *)timeStamp;

-(NSMutableArray *)selectAll;



@end
